package com.example.chapter01;

public class Chapter03 {
    public static void main(String[] args){
        int i = (100 + 200) * (99 - 88); // 3300
        int n = 7 * (5 + (i - 9)); // 23072
        System.out.println(i);
        System.out.println(n);
        int x = 12345 / 67; // 184
        System.out.println(x);
        int y = 12345 % 67; // 12345÷67的余数是17
        System.out.println(y);

        long x1 = 2147483640;
        long y1 = 15;
        long sum = x1 + y1;
        System.out.println(sum);
        int m=0;
        int k=0;
        m += 100; // 3409, 相当于 n = n + 100;
        k -= 100; // 3309, 相当于 n = n - 100;
        System.out.println(m);
        System.out.println(k);
        int i2 = 1234567822;
        short s2 = (short) i2; // 24910
        System.out.println(s2);
    }
}
